import {
	apiResquest
} from '@/utils/request.js'


// 获取空闲浮板
export const getColorList = query => {
	return apiResquest({
		url: '/api/device_item/list',
		method: 'POST',
		query: query
	})
}
// 获取浮板
export const getout = query => {
	return apiResquest({
		url: '/api/replace/getout',
		method: 'POST',
		query: query
	})
}
// 获取设备计费规则
export const getEquipRule = query => {
	return apiResquest({
		url: '/api/index/new_detail',
		method: 'POST',
		query: query
	})
}
// 换电池
export const exchangeForBattery = query => {
	return apiResquest({
		url: '/api/replace/exchangeForBattery',
		method: 'POST',
		query: query
	})
}
// 归还电池/浮板
export const getOutBattery = query => {
	return apiResquest({
		url: '/api/replace/back',
		method: 'POST',
		query: query
	})
}
// 获取支付金额
export const getMoneyAmount = query => {
	return apiResquest({
		url: '/api/money/amount',
		method: 'POST',
		query: query
	})
}
// 订单支付
export const orderPay = query => {
	return apiResquest({
		url: '/api/money/pay',
		method: 'POST',
		query: query
	})
}
